package com.cloudlead.plugin.dict;

import com.cloudlead.common.lang.BusinessModule;

/**
 * BusinessModules is a Codegen businsess modules type
 */
public enum BusinessModules implements BusinessModule {

	DictModule("字典模块", null), Dict("字典", DictModule), DictGroup("字典组",
			DictModule);

	private BusinessModules(String label, BusinessModule parent) {
		this.label = label;
		this.parent = parent;
	}

	private String label;

	private BusinessModule parent;

	public String getName() {
		return this.name();
	}

	public String getLabel() {
		return label;
	}

	public BusinessModule getParent() {
		return parent;
	}

	public String getFullName() {
		return null == this.parent ? this.name() : this.parent.getFullName()
				+ "-" + this.getName();
	}

	public int getOrdinal() {
		return this.ordinal();
	}

}
